
import request from '@/utils/request'



// 查询民宿列表信息
export function contentList() {
  return request({
    url: '/homestay/home/list',
    method: 'get'
  })
}

// 根据民宿id查询民宿详情信息
export function homeDetail(id) {
  return request({
    url: `/homestay/home/${id}`,
    method: 'get'
  })
}

// 分页查询民宿列表信息
export function contentListByPage(pageNum, pageSize) {
  return request({
    url: '/homestay/home/list',
    method: 'get',
    params: {
      pageNum,
      pageSize
    }
  })
}
